package org.senseframework.support.open.api.controller.encrypt;

/**
 * Created by sswang on 2015/9/29.
 */
public class Constants {
    /**
     * 请求唯一标识，32位不重复字符串
     */
    public final static String AUTHENTICATION_NONCE = "nonce";
    /**
     * 签名方法，默认为 hmac-sha1
     */
    public final static String AUTHENTICATION_SIGNATURE_METHOD = "sign_method";
    /**
     * 签名值
     */
    public final static String AUTHENTICATION_SIGNATURE = "sign";
    /**
     * 请求的Unix时间戳，从1970-01-01到现在的秒数
     */
    public final static String AUTHENTICATION_TIMESTAMP = "time";
    /**
     * 签名的版本号默认为1.0
     */
    public final static String AUTHENTICATION_VERSION = "ver";

    /**
     * 默认签名版本
     */
    public final static String AUTHENTICATION_VERSION_VALUE = "1.0";

    /**
     * 网络接入点名称
     */
    public final static String BASE_PARAM_APN = "apn";
    /**
     * 应用程序渠道编号
     */
    public final static String BASE_PARAM_CHANNEL_ID = "channelid";
    /**
     * ios广告编号，可用来唯一标示用户
     */
    public static final String BASE_PARAM_IDFA = "idfa";
    /**
     * android设备号
     */
    public static final String BASE_PARAM_ADID = "adid";
    /**
     * 手机串号
     */
    public final static String BASE_PARAM_IMEI = "imei";
    /**
     * sim卡号
     */
    public final static String BASE_PARAM_IMSI = "imsi";
    /**
     * 手机mac号
     */
    public final static String BASE_PARAM_MAC = "mac";
    /**
     * 客户端操作系统类型（android、iphone）
     */
    public final static String BASE_PARAM_OSID = "osid";
    /**
     * 手机的UserAgent
     */
    public final static String BASE_PARAM_UA = "ua";
    /**
     * 登录用户userId，非登录状态下为空
     */
    public final static String BASE_PARAM_USER_ID = "userId";
    /**
     * 当前客户端版本
     */
    public final static String BASE_PARAM_VERSION = "version";

    
    public static final String HTTP_ACCEPT_ENCODING = "Accept-Encoding";
    public static final String HTTP_GZIP = "gzip";

    public final static int ENCRYPT_KEY_LENGTH = 16;
    public final static int ENCRYPT_CHECKINFO_LENGTH = 32;
    public static final String ENCRYPT_REQUEST_SESSION = "encrypt-session";
    public static final String DEFAULT_CHARSET = "UTF-8";
}
